package com.java.controller;

import com.java.entity.Pickingtask;
import com.java.service.PickingtaskService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Pickingtask)表控制层
 *
 * @author makejava
 * @since 2021-01-20 18:54:57
 */
@RestController
@RequestMapping("/pickingtask/")
public class PickingtaskController {
    /**
     * 服务对象
     */
    @Resource
    private PickingtaskService pickingtaskService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Pickingtask selectOne(Integer id) {
        return this.pickingtaskService.queryById(id);
    }

}